home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 128 35 / q35.d81 / t.calcal v1 < prev    next >
Text File  |  2022-08-28  |  8KB  |  172 lines

  1.  
  2.  
  3.                              C A L C A L   V 1
  4.  
  5.                      Program and Text by Fender Tucker
  6.  
  7.                     ML Printer Routines by Bob Markland
  8.  
  9.  
  10.     It all began with a letter all the way from Bossier City, LA from Lyman
  11. Bertsch, a loyal C-128 user. He sent me a copy of an old calendar program
  12. (with docs) from Compute's Gazette, and asked if we had a program that
  13. would do the same thing, except better. The original program was for the
  14. C-64 and was hardcoded to work only with Commodore 7-pin printers. He
  15. wanted a version that would run in the 80-column 128 mode and would support
  16. 8-pin printers.
  17.  
  18.     Well, when someone throws a gauntlet my way, I usually pick it up and
  19. add it to my extensive glove collection but this time I thought, "Is he
  20. saying that I can't improve on a program written a decade ago for Compute?"
  21. Of course, he wasn't saying that, but it helped me to see it that way and
  22. take the challenge.
  23.  
  24.  NOTE: There is a very powerful calendar program from ed bell called TOTAL
  25. RECALL on LS 128 #20, but it's script-driven and designed for making a
  26. variety of calendars in various sizes. I recommended it to Lyman at first
  27. but he found that it did much more than he needed. He wanted a small
  28. program that would allow him to enter text on a calendar on screen, and
  29. save it to disk or send it to printer.
  30.  
  31.     My first problem was: how do you figure out the days of a particular
  32. month? Then I remembered that I wrote a little BASIC program a long time
  33. ago for LOADSTAR 64 that took any day in modern history and told you which
  34. day of the week it was. It used about five lines of BASIC code to do the
  35. figuring. I could use that algorithm to find which day of the week the 1st
  36. of a month was on, then the rest of the calendar would follow naturally.
  37.  
  38.     I figured the rest would be easy. I'd have the program make a nice-
  39. looking calendar on the screen, and then I'd use the very first version of
  40. Jon Mattson's CONTROL80, which had a DUMP command, to send the screen
  41. directly to the printer. What could be easier?
  42.  
  43.     Well, there were problems. DUMP worked, but it uses your printer's
  44. default line spacing so you get vertical lines that don't touch. You've
  45. seen what results when you try to print boxes made with the Commodore
  46. graphics characters. It's not pretty, and frankly, it looked much cheesier
  47. than the printout that the original Gazette program produced. That wouldn't
  48. do.
  49.  
  50.     So I got rid of CONTROL80's DUMP command and wrote code that would
  51. print the screen, using a line spacing that would make the vertical lines
  52. touch. Now the problem was that the calendar looked "squashed", much wider
  53. than it was tall. On the screen it looked fine, with three lines of text
  54. possible for each day of the month, but the printout was embarrassing. So I
  55. asked Bob Markland, who has written a lot of printer routines for LOADSTAR
  56. 64, for help. He came through in flying colors.
  57.  
  58.     And CALCAL V1 was born.
  59.  
  60.  
  61.  CALCAL: THE CALCULATOR
  62.  ----------------------
  63.  
  64.     When you boot CALCAL (or CALENDAR CALCULATOR) you start in the
  65. CALCULATOR mode. There are four boxes on the screen showing:
  66.  
  67.    MONTH    DATE    YEAR     DAY OF WEEK
  68.  
  69. There will be a date in the boxes and the fourth box will show the day of
  70. the week that it fell on. That's about all the Calculator does: you give it
  71. a date in history and it'll immediately show you the day of the week it
  72. falls on. You change the dates by using the CRSR RIGHT and LEFT keys to
  73. move the highlight to MONTH, DATE or YEAR. Then use the CRSR UP and DOWN
  74. keys to increment or decrement the highlighted information.
  75.  
  76.     You can use the F-keys to increment or decrement the year by 10 or 100
  77. years, so it doesn't take forever to get to 1607 or 2525.
  78.  
  79.     Press C to go to a calendar of the month currently showing in the
  80. boxes.
  81.  
  82.     Press T to toggle whether the calendar will be light text on a black
  83. screen, or dark text on a white screen. Actually, the text is the same
  84. color, mostly. I just thought that some people may prefer to use a
  85. cheerier, white calendar. Most programs on a C-64/128 use a black
  86. background because all the colors look good on black, but for some
  87. applications, the black can be oppressive.
  88.  
  89.      Press Q to quit to LOADSTAR 128 if there's a LS disk in the currently
  90. active drive.
  91.  
  92.  
  93.  CALCAL: THE CALENDAR
  94.  --------------------
  95.  
  96.     Once you go to the Calendar Mode, a small help screen will pop up
  97. showing you the various hot keys for this mode. They're all F-keys since
  98. you will be using all of the other keys for writing on your calendar.
  99.  
  100.     Press a key and the help box disappears. Now you're ready to customize
  101. the calendar for your needs. You have a green cursor that can be moved
  102. anywhere on the screen. You can print anything you want on the screen,
  103. except on lines, numbers and some of the letters. DELETE works. INSERT
  104. doesn't. CLR (SHIFT-HOME) asks if you're sure, then clears all of your text
  105. from the calendar if you answer yes.
  106.  
  107.     You have three rows and 10 characters per row to enter any info you
  108. want into a date. You also have some free space before and after the first
  109. and last days of the month, depending on when the month starts and ends.
  110. You can't type outside the calendar.
  111.  
  112.     F2 will show you the help box again to refresh your memory about what
  113. the F-keys do.
  114.  
  115.     F1 and F3 are for LOADing and SAVEing the currently displayed calendar.
  116. It will create a 17-block file on the disk in the active drive. Be sure you
  117. have 17 blocks free before SAVEing. You're not asked for names or any kind
  118. of input. If there's not a saved file, nothing will be loaded. The screen
  119. will simply not change. Therefore, if you don't know if there is a saved
  120. file for the month you're in, try F1. It'll either load or there isn't
  121. one.
  122.  
  123.  NOTE: I've included a dummy file for August 1997 on the LOADSTAR 128 #35
  124. disk. Display that month and press F1 to see how loading and saving works.
  125.  
  126.     Press F5 to print the displayed month's calendar, including any text
  127. you have on the screen. Be sure your printer is ready. It will use one
  128. sheet of paper and print a calendar that is essentially twice as tall as
  129. the one on the screen, WITH connected vertical lines. Even though the
  130. printout is twice as tall as the screen, on paper it looks about the same.
  131. The three lines of text will be squeezed up towards the top of each date's
  132. box, leaving you plenty of room to pencil in information directly on the
  133. calendar after you've posted it on the wall or refrigerator.
  134.  
  135.     Thanks to Bob Markland, the printed calendar has the days of the week
  136. listed at the top (unlike the screen), and also, at the bottom, handy mini-
  137. calendars of the month preceding and the month following the printed month.
  138. Just as in real, professional calendars.
  139.  
  140.     Press F7 to go back to the CALCULATOR mode. You should save your
  141. calendar before leaving the CALENDAR mode, if you want it saved.
  142.  
  143.  NOTE: If you have a calendar showing and you go back to the CALCULATOR
  144. mode, then come back to the CALENDAR mode with the same month showing, your
  145. info will still be intact. However, it's still a good idea to save the
  146. month before leaving the CALENDAR mode because it's possible to lose your
  147. info if you toggle colors of the calendar before coming back.
  148.  
  149.  
  150.  END OF STORY
  151.  ------------
  152.  
  153.     That's the CALCAL story. In a future version I may be able (with Bob's
  154. help) to allow for more info per date box by having the text printed in the
  155. subscript and condensed mode. If so, I'd need to abandon the idea of using
  156. the screen as the calendar and open up a bigger text box for your info.
  157. Then the info wouldn't show on the screen; only on the printout. That's how
  158. the Gazette version worked. I like being able to see "almost what you get"
  159. as the program now does, but maybe some of you users will have some
  160. suggestions for V2? If so, send 'em on in.
  161.  
  162.      In the meantime, CALCAL is dedicated to Mr. Lyman Bertsch of Bossier
  163. City LA, the city that hogged all but one of the casino riverboats on the
  164. Red River. It would have been fine if Bossier had been on the west side of
  165. Shreveport rather than on the east. Then all those rich Texans wouldn't
  166. have to drive through Shreveport on their way to dropping millions for the
  167. poor people